/*
 * @Descripttion: 
 * @version: 
 * @Author: mmzhang
 * @Date: 2021-07-27 16:02:34
 * @LastEditTime: 2022-06-22 10:52:28
 */
import businessCommonMgr from '@/biz/businessReport/businessCommon'
import clueMgr from '@/biz/businessReport/clue'
import houseOpt from '@/biz/option/house.js'
import nameOpt from '@/biz/option/name.js'
import ruleOpt from '@/biz/option/rule.js'
import tool from '@/common/tool.js'
import Opt from '@/components/dt/info/Opt.js'

let _this = null

class ClueTotal extends Opt {
  constructor(vm) {
    super()
    _this = vm
    this.build()
  }

  build() {
    this.createAll()
    this.opts.push(...this.all)
  }

  createAll() {
    this.all = [{
      key: 'clueSum',
      name: '全部线索',
      params: 'clueSumParam'
    }, {
      key: 'pushSuccessSum',
      name: '推送成功',
      params: 'pushSuccessParam'
    }, {
      key: 'pushErrorSum',
      name: '推送失败',
      params: 'pushErrorParam'
    }, {
      key: 'noDistributionSum',
      name: '未分配线索',
      params: 'noDistributionParam'
    }, {
      key: 'effectiveSum',
      name: '有效线索',
      params: 'effectiveParam'
    }, {
      key: 'invalidSum',
      name: '无效线索',
      params: 'invalidParam'
    }, {
      key: 'failureSum',
      name: '失效线索',
      params: 'failureParam'
    }, {
      key: 'visitSum',
      name: '转到访线索',
      params: 'visitParam'
    }]
  }

}

export default ClueTotal